<template>
	<view>
		<view class="" v-for="(item,index) in refundDetail.logs" :key="index" style="padding: 20rpx 50rpx;">
			<view class="" style="font-size: 28rpx;">{{item.log_type_text}}</view>
			<view class="" style="color: #999999;font-size: 24rpx;margin: 20rpx 0;">
				<view class="" v-html="item.content"></view>
			</view>
			<view class="" style="padding: 10rpx 0rpx;">
				<scroll-view class="scroll-view_H" scroll-x="true"  scroll-left="120">
					<image :src="info.app.cdnurl+imgSub" class="image5" v-for="(imgSub,index) in item.images" mode="aspectFit" :key="index"></image>
				</scroll-view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getOrderAftersaleDetail
	} from "@/apis/index"
	export default {
		data() {
			return {
				refundDetail: {}
			}
		},
		async onLoad(option) {
			if (option.id) {
				await this.getDetail(option.id)
			}
		},
		methods: {
			async getDetail(id) {
				let res = await getOrderAftersaleDetail(id)
				if (res.code == 1) {
					this.refundDetail = res.data
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.tui-img__box {
		width: 100%;
		font-size: 0;
		padding-top: 4rpx;
	}

	.tui-img__box image {
		width: 200rpx;
		height: 200rpx;
		margin-right: 12rpx;
		margin-top: 12rpx;
	}

	.tui-image {
		width: 400rpx !important;
		height: auto;
	}
	.scroll-view_H {
			white-space: nowrap;
			width: 100%;
		}
	.image5{
		margin-right: 20rpx;
		width: 120rpx;
		height: 80rpx;
	}
</style>